import Vue from 'vue'
// 提出api
import axios from '../utils/axios'


// 热点轮播图
export const hotBanner=()=>{
 return axios.post('/getCommendBanner');
}

//今日热门
export const hotSport =() =>{
    return axios.get('/video/list');
}

//视频分类
export const searchType =(data)=> {
    return axios.get('/video/tag',{params:data})
}

// 搜索列表
export const search= (data)=>{
    return axios.get('/video',{params:data});
}




export const findVideo= (data)=>{
    return axios.get('/video/find',{params:data});
}


// 视频地址
export const getVideoSrc= (_id)=>{
    const data={
        _id
    }
    return axios.post('/getVideoSrc',data);
}



// 角色查询
export const searchRole=(data)=> {
    return axios.get('/role',{params:data})
}

export const rolePoster=(data)=> {
    return axios.get('/role/poster',{params:data})
}